From 257769ca8a567b5b6d272456199581ed972f610d Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Thu, 1 Mar 2007 09:52:40 +0000 Subject: [PATCH] [XEN] Fix cset 14166 Signed-off-by: Tim Deegan --- xen/arch/x86/domain.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 219a358d0b..a1e0950270 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -501,11 +501,9 @@ int arch_set_info_guest( unsigned long flags; int i, rc = 0, compat; - /* The context is a compat-mode one if *either* the calling domain - * or the target domain is compat-mode: if the caller is compat, it - * won't know to make a native context, and if the target is compat, - * the tools will have made a compat-mode context for it. */ - compat = IS_COMPAT(d) || IS_COMPAT(current->domain); + /* The context is a compat-mode one if the target domain is compat-mode; + * we expect the tools to DTRT even in compat-mode callers. */ + compat = IS_COMPAT(d); #ifdef CONFIG_COMPAT #define c(fld) (compat ? (c.cmp->fld) : (c.nat->fld)) -- 2.30.2